<%@ page language="java" import="java.util.*,java.sql.*,com.ex.*" contentType="text/html; charset=gbk" pageEncoding="gbk"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<body>
<%
try{
request.setCharacterEncoding("gbk"); 	
String id=request.getParameter("tid");
Connection ct = new ConnDB().getConn();
Statement sm = ct.createStatement();
sm.executeUpdate("DELETE FROM Template WHERE Template_ID='"+id+"';");


sm.close();
ct.close();
}
catch(Exception e){
e.printStackTrace();
}
%>
<script language = "javascript">
		window.location.href = "Template_management.jsp";
		</script>;

</body>